package cool.tianyou.blue.bird.common.model.entity;

import cool.tianyou.blue.bird.common.model.contstant.QrcodeStatusEnum;
import cool.tianyou.blue.bird.module.auth.model.dto.LoginDTO;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author 刘天佑
 * @date 2021-09-30
 */
@Data
@Accessors(chain = true)
public class ScanResult {
    /**
     * 二维码状态
     */
    private QrcodeStatusEnum statusEnum;
    private String uuid;
    private String deviceName;
    private String brand;
    private LoginDTO loginDto;

    public ScanResult(QrcodeLoginInfo info,String uuid) {
        this.statusEnum = info.getQrcodeStatusEnum();
        this.deviceName = info.getDeviceName();
        this.brand = info.getBrand();
        this.loginDto = info.getLoginDto();
        this.uuid = uuid;
    }

    public ScanResult(QrcodeStatusEnum statusEnum) {
        this.statusEnum = statusEnum;
    }
}
